<!-- 根据分割符对调内容 -->
<template>
  <div class="content-swap-form">
    <el-form :model="formStore">
      <el-form-item label="根据分割符对调内容">
        <el-tooltip
          class="box-item"
          effect="dark"
          placement="top"
          popper-class="tooltip"
        >
          <template #content>
            对分割符前后内容进行对调，如原文
            <br />
            件名 “A--B”，输入分割符为 “--”，
            <br />
            则新文件名变更为 “B--A”
          </template>
          <el-icon :size="18" class="icon">
            <QuestionFilled />
          </el-icon>
        </el-tooltip>
      </el-form-item>
      <el-form-item label="分割符">
        <el-input
          v-model="formStore.splitCharaterText"
          placeholder="请输入分割符"
        />
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import { QuestionFilled } from '@element-plus/icons-vue'
import useContentSwapFormStore from '@renderer/store/Form/ContentSwapFormStore'

const formStore = useContentSwapFormStore()
</script>

<style lang="less" scoped>
.content-swap-form {
  .icon {
    margin-left: -1px;
    color: var(--el-text-color-regular);
    cursor: pointer;
  }
}
</style>
